![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Source interface. More...
#include <isource.h>
Public Types | |
enum | State { Active , Inactive } |
Source state. More... | |
Public Member Functions | |
virtual size_t | sample_rate () const =0 |
Get source sample rate. More... | |
virtual bool | has_clock () const =0 |
Check if the source has own clock. More... | |
virtual State | state () const =0 |
Get current source state. More... | |
virtual void | wait_active () const =0 |
Wait until the source state becomes active. More... | |
virtual bool | read (audio::Frame &)=0 |
Read frame. More... | |
|
pure virtual |
Check if the source has own clock.
Implemented in roc::pipeline::Receiver, and roc::sndio::SoxSource.
|
pure virtual |
Read frame.
Implemented in roc::pipeline::Receiver, and roc::sndio::SoxSource.
|
pure virtual |
Get source sample rate.
Implemented in roc::pipeline::Receiver, and roc::sndio::SoxSource.
|
pure virtual |
Get current source state.
Implemented in roc::pipeline::Receiver, and roc::sndio::SoxSource.
|
pure virtual |
Wait until the source state becomes active.
Implemented in roc::pipeline::Receiver, and roc::sndio::SoxSource.